package com.headfirst.decorator.myenum;

/**
 * @author sunhongguang
 * @create 2022-01-23-1:35
 */
public enum CoffeeSize {

    MinSize(1,"小杯"),
    MidSize(2,"中杯"),
    LargeSize(3,"大杯"),
    VeryLargeSize(4,"超大杯");

    private Integer size;
    private String description;

    CoffeeSize(Integer size, String description) {
        this.size = size;
        this.description = description;
    }

    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
